package trading.algo;

import java.util.TimerTask;

import trading.bo.IBAccessorBO;

/**
 * @author ntantai
 *
 */
public class PriceUpdateTask extends TimerTask {

	private IBAccessorBO ibAccessorBO;
	private String ticker;
	
	public PriceUpdateTask(IBAccessorBO ibAccessorBO, String ticker) {
		this.ibAccessorBO = ibAccessorBO;
		this.ticker = ticker;
	}
	
	@Override
	public void run() {
		this.ibAccessorBO.reqLastStockTickPrice(ticker);
	}

}
